package org.chen.spring.cloud.finchley.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chensj
 * @date 2020-02-07 22:19
 */
@RestController
public class TestController {

    @GetMapping(value = "add")
    public String add(Integer a, Integer b, HttpServletRequest request) {
        return "From Port " + request.getServerPort() + " ,Result:" + (a + b);
    }
}
